package 抽象工厂.PIFU;

//文本框抽象类
public abstract class Text {}

class GreenText extends Text{
    public GreenText(){
        System.out.println("我是浅绿色的文本框");
    }
}

class BlueText extends Text{
    public BlueText(){
        System.out.println("我是浅蓝色的文本框");
    }
}

//增加秋天浅黄色的文本框
class YellowText extends Text{
    public YellowText(){
        System.out.println("我是浅黄色的文本框");
    }
}